﻿//Copyright © 2012 by Geodata Danmark. All Rights Reserved
//Author: Carsten Helsted

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BrowseByURL
{
    public class Browser
    {
        private string _name = "";
        private string _displayName = "";
        private string _shellCommand = "";
        private string _defaultIcon = "";
        private bool _default = false;


        public Browser(string name, string displayName, string shellCommand, string defaultIcon, bool isDefaultBrowser)
        {
            _name = name;
            _displayName = displayName;
            _shellCommand = shellCommand;
            _defaultIcon = defaultIcon;
            _default = isDefaultBrowser;
        }

        public string Name { 
            get
            {
                return _name;
            }
            set
            {
                _name = value;
            }
        }


        public string DisplayName
        {
            get
            {
                return _displayName;
            }
            set
            {
                _displayName = value;
            }
        }


        public string ShellCommand
        {
            get
            {
                return _shellCommand;
            }
            set
            {
                _shellCommand = value;
            }
        }


        public string DefaultIcon
        {
            get
            {
                return _defaultIcon;
            }
            set
            {
                _defaultIcon = value;
            }
        }

        public bool IsDefaultBrowser
        {
            get
            {
                return _default;
            }
            set
            {
                _default = value;
            }
        }

        public override string ToString() { return this._displayName; } 
 
    }
}
